package com.zenghus.strategy;

public class LoginTest {
    public static void main(String[] args) {
        String loginType="QQ";
        String username="admin";
        String password="adminpassword";

        Login l=Login.getLoginType(loginType).get(username,password);
        boolean islogin=l.loginValidate();
        if(islogin){
            System.out.println("登录成功，跳转到首页！");
        }else{
            System.out.println("登录失败，提示用户名密码错误！");
        }

    }
}
